package cn.org.xuanguang.kepler.hormos.rdb.jpa;

/**
 * @param <X>
 * @param <Y>
 */
public class StringAttributeConverter<X extends Enum, String> implements AttributeConverter<X, String> {

    @Override
    public String convertToDatabaseColumn(X attribute) {
        if (attribute != null) {
            return (String) attribute.toString();
        }

        return null;
    }

    @Override
    public X convertToEntityAttribute(String dbData) {
        return null;
    }
}
